/* Main window */

QMainWindow
{
    background: rgb(0, 0, 0);
}

QMainWindow::separator
{
    background: transparent;
    width: 2px;
}

QMainWindow::separator:hover
{
    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
                                stop: 0   rgb(84, 166, 0),
                                stop: 0.5 rgb(129, 255, 0),
                                stop: 1 rgb(84, 166, 0));
}

/* Controls bar */

QWidget#wdgVideoControls, QWidget#wdgPlayList
{
    min-height: 24px;

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(31, 31, 31),
                                stop: 1 rgb(0, 0, 0));
}

/* Time label */

QLabel#lblTime
{
    color: rgb(191, 191, 191);
}

/* Horizontal scroll bars */

QMainWindow QScrollBar:horizontal
{
    height: 12px;
    margin: 0px 12px 0px 12px;

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0     rgba(0, 0, 0, 0),
                                stop: 0.375 rgba(0, 0, 0, 0),
                                stop: 0.5   rgb(84, 166, 0),
                                stop: 0.625 rgba(0, 0, 0, 0),
                                stop: 1     rgba(0, 0, 0, 0));
}

QMainWindow QScrollBar::handle:horizontal
{
    border-radius: 6px;
    background: rgb(84, 166, 0);
}

QMainWindow QScrollBar::handle:horizontal:hover
{
    background: rgb(129, 255, 0);
}

QMainWindow QScrollBar::add-line:horizontal
{
    width: 12px;
    border-radius: 6px;
    subcontrol-position: right;
    subcontrol-origin: margin;

    background: rgb(84, 166, 0);
}

QMainWindow QScrollBar::add-line:horizontal:hover
{
    background: rgb(129, 255, 0);
}

QMainWindow QScrollBar::sub-line:horizontal
{
    width: 12px;
    border-radius: 6px;
    subcontrol-position: left;
    subcontrol-origin: margin;

    background: rgb(84, 166, 0);
}

QMainWindow QScrollBar::sub-line:horizontal:hover
{
    background: rgb(129, 255, 0);
}

QMainWindow QScrollBar::add-page:horizontal, QMainWindow QScrollBar::sub-page:horizontal
{
    background: none;
}

/* Vertical scroll bars */

QMainWindow QScrollBar:vertical
{
    width: 12px;
    margin: 12px 0px 12px 0px;

    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
                                stop: 0     rgba(0, 0, 0, 0),
                                stop: 0.375 rgba(0, 0, 0, 0),
                                stop: 0.5   rgb(84, 166, 0),
                                stop: 0.625 rgba(0, 0, 0, 0),
                                stop: 1     rgba(0, 0, 0, 0));
}

QMainWindow QScrollBar::handle:vertical
{
    border-radius: 6px;
    background: rgb(84, 166, 0);
}

QMainWindow QScrollBar::handle:vertical:hover
{
    background: rgb(129, 255, 0);
}

QMainWindow QScrollBar::add-line:vertical
{
    height: 12px;
    border-radius: 6px;
    subcontrol-position: bottom;
    subcontrol-origin: margin;

    background: rgb(84, 166, 0);
}

QMainWindow QScrollBar::add-line:vertical:hover
{
    background: rgb(129, 255, 0);
}

QMainWindow QScrollBar::sub-line:vertical
{
    height: 12px;
    border-radius: 6px;
    subcontrol-position: top;
    subcontrol-origin: margin;

    background: rgb(84, 166, 0);
}

QMainWindow QScrollBar::sub-line:vertical:hover
{
    background: rgb(129, 255, 0);
}

QMainWindow QScrollBar::add-page:vertical, QMainWindow QScrollBar::sub-page:vertical
{
    background: none;
}

/* Horizontal sliders */

QWidget#wdgVideoControls QSlider::groove:horizontal
{
    height: 4px;
    border-radius: 2px;
}

QWidget#wdgVideoControls QSlider::sub-page:horizontal
{
    height: 4px;
    border-radius: 2px;

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(84, 166, 0),
                                stop: 0.5 rgb(129, 255, 0),
                                stop: 1 rgb(84, 166, 0));
}

QWidget#wdgVideoControls QSlider::add-page:horizontal
{
    height: 4px;
    border-radius: 2px;

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(84, 166, 0),
                                stop: 1   rgb(0, 0, 0));
}

QWidget#wdgVideoControls QSlider::handle:horizontal
{
    background: rgb(84, 166, 0);

    width: 12px;
    margin-top: -4px;
    margin-bottom: -4px;
    border-radius: 6px;
}

QWidget#wdgVideoControls QSlider::handle:horizontal:hover
{
    background: rgb(129, 255, 0);
}

QWidget#wdgVideoControls QSlider::sub-page:horizontal:disabled
{
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(83, 83, 83),
                                stop: 0.5 rgb(128, 128, 128),
                                stop: 1   rgb(83, 83, 83));
}

QWidget#wdgVideoControls QSlider::add-page:horizontal:disabled
{
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(83, 83, 83),
                                stop: 1   rgb(0, 0, 0));
}

QWidget#wdgVideoControls QSlider::handle:horizontal:disabled
{
    background: rgb(83, 83, 83);
}

/* Menus */

QMenu
{
    background-color: rgba(0, 0, 0, 223);
    border-radius: 16px;
}

QMenu::item
{
    color: rgb(128, 128, 128);
    background-color: transparent;
    margin: 4px;
    padding: 4px;
}

QMenu::item:selected
{
    color: rgb(255, 255, 255);
    border-radius: 8px;

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(84, 166, 0),
                                stop: 1   rgb(0, 0, 0));
}

/* Playlist */

QListWidget#lswPlaylist
{
    border-radius: 0px;
    padding: 0px;
    margin: 0px;

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(31, 31, 31),
                                stop: 1   rgb(0, 0, 0));
}

QListWidget#lswPlaylist:item
{
    color: rgb(128, 128, 128);
}

QListWidget#lswPlaylist::item:hover
{
    color: rgb(255, 255, 255);

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(84, 166, 0),
                                stop: 1   rgb(0, 0, 0));
}

QListWidget#lswPlaylist::item:selected:!active
{
    color: rgb(255, 255, 255);

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(83, 83, 83),
                                stop: 0.5 rgb(128, 128, 128),
                                stop: 1   rgb(83, 83, 83));
}

QListWidget#lswPlaylist::item:selected:active
{
    color: rgb(255, 255, 255);

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(84, 166, 0),
                                stop: 0.5 rgb(129, 255, 0),
                                stop: 1 rgb(84, 166, 0));
}

/* Tool Tips */

QMainWindow QToolTip
{
    color: rgb(255, 255, 255);
    background: rgba(0, 0, 0, 63);
    border: 1px solid rgb(127, 127, 127);
}

/* Controls bar buttons */

QWidget#wdgVideoControls > QPushButton, QWidget#wdgPlayList > QPushButton
{
    width: 24px;
    border: none;
    border-radius: 12px;

    background: qradialgradient(cx: 0.5, cy: 0.5, radius: 0.5,
                                fx: 0.5, fy: 0.5,
                                stop:0 rgba(128, 128, 128, 63),
                                stop:1 rgba(83, 83, 83, 63));
}

QWidget#wdgVideoControls > QPushButton:hover, QWidget#wdgPlayList > QPushButton:hover
{
    background: qradialgradient(cx: 0.5, cy: 0.5, radius: 0.5,
                                fx: 0.5, fy: 0.5,
                                stop:0 rgba(84, 166, 0, 191),
                                stop:1 rgba(129, 255, 0, 191));
}

QWidget#wdgVideoControls > QPushButton:pressed, QWidget#wdgPlayList > QPushButton:pressed
{
    background: qradialgradient(cx: 0.5, cy: 0.5, radius: 0.5,
                                fx: 0.5, fy: 0.5,
                                stop:0 rgba(186, 255, 115, 191),
                                stop:1 rgba(129, 255, 0, 191));
}

QWidget#wdgVideoControls > QPushButton:checked, QWidget#wdgPlayList > QPushButton:checked
{
    background: qradialgradient(cx: 0.5, cy: 0.5, radius: 0.5,
                                fx: 0.5, fy: 0.5,
                                stop:0 rgba(0, 0, 0, 191),
                                stop:1 rgba(84, 166, 0, 191));
}

/* Dock */

QWidget#dckPlayList
{
    border: none;
    color: rgb(255, 255, 255, 191);
}

QDockWidget#dckPlayList::title
{
    text-align: center;
    background: rgb(0, 0, 0);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

/* About dialog */

QDialog#dlgAddURL, QDialog#dlgAbout
{
    background: rgb(0, 0, 0);
}

QDialog#dlgAbout QLabel
{
    color: rgb(191, 191, 191);
}

/* Add URL dialog */

QDialog#dlgAddURL QPlainTextEdit
{
    border-radius: 0px;
    padding: 0px;
    margin: 0px;
    color: rgb(191, 191, 191);

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(31, 31, 31),
                                stop: 1   rgb(0, 0, 0));
}

QDialog#dlgAddURL QPushButton, QDialog#dlgAbout QPushButton
{
    border-radius: 8px;
    color: rgb(191, 191, 191);
    padding: 4px;

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(0, 0, 0),
                                stop: 0.5 rgb(84, 166, 0),
                                stop: 1   rgb(0, 0, 0));
}

QDialog#dlgAddURL QPushButton:hover, QDialog#dlgAbout QPushButton:hover
{
    color: rgb(255, 255, 255);

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(84, 166, 0),
                                stop: 0.5 rgb(129, 255, 0),
                                stop: 1 rgb(84, 166, 0));
}

QDialog#dlgAddURL QPushButton:pressed, QDialog#dlgAbout QPushButton:pressed
{
    color: rgb(255, 255, 255);

    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0   rgb(129, 255, 0),
                                stop: 0.5 rgb(186, 255, 115),
                                stop: 1 rgb(129, 255, 0));
}
